const express = require("express");
const router = express.Router();
const controller = require("../controller");

// 登录接口
router.post("/login", controller.loginApi);
//  注册接口
router.post("/register", controller.registerApi);
// 获取文章列表
router.get("/article/List", controller.getArticleListApi);
// 发表文章接口
router.post("/write/article", controller.writeArticleListApi);

module.exports = router;
